package com.example.tokendemo.core.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.example.tokendemo.core.entity.SysMenuEntity;
import com.example.tokendemo.core.entity.SysRoleEntity;
import com.example.tokendemo.core.entity.SysUserEntity;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2022-01-06 15:20:31
 */
@Service
public interface SysUserService extends IService<SysUserEntity> {

    SysUserEntity selectUserByName(String username);

    List<SysRoleEntity> selectSysRoleByUserId(Long userId);

    List<SysMenuEntity> selectSysMenuByUserId(Long userId);

    int addUser(SysUserEntity userEntity);
}

